//
//  UIView+Screenshot.h
//  lc-collect
//
//  Created by mac on 2021/3/4.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (Screenshot)

/// View截图
- (UIImage *)screenshot;

/// ScrollView截图 contentOffset
- (UIImage *)screenshotForScrollViewWithContentOffset:(CGPoint)contentOffset;

/// View按Rect截图
- (UIImage *)screenshotInFrame:(CGRect)frame;

/// 整个view转成图片
- (UIImage *)convertToImage;

@end

NS_ASSUME_NONNULL_END
